<!-- START OF WRAPPER -->
<script type="text/javascript" src="<?php echo $this->baseUrl('/media/js/jquery.fancybox-1.3.4.pack.js')?>"></script>
<link rel="stylesheet" type="text/css" href="<?php echo $this->baseUrl('/media/css/jquery.fancybox-1.3.4.css')?>"/>
<script type="text/javascript">	
$(function(){
		$("a.youtube_vedio").click(function(){  
    		$("#youtubeVideoFrame",parent.document.body).attr('src','http://www.youtube.com/embed/_HOMoTqEASY');
    	});
		$("a.youtube_vedio").fancybox({
           'titlePosition'		: 'inside',
		   'transitionIn'		: 'none',
		   'transitionOut'		: 'none',
		   'overlayOpacity'     : 0.9,		     
        });
    });	
</script>

<div style="display: none;">
  <div id="youtube_vedio_div" style="overflow:auto;">
    <iframe title="YouTube video player" width="425" height="344" id="youtubeVideoFrame" src="http://www.youtube.com/embed/_HOMoTqEASY" frameborder="0" allowfullscreen></iframe>
  </div>
</div>
<?php if ($this->user) $action = $this->user->select_role == 'Investor'?null:'( My Plan )' ;?>
<!-- begin edit-->
<div class="user_edit_wrapper">
  <h4 style="color:#000000">let's Get Started!</h4>
  <?php if($this->user && $this->user->select_role == 'Investor'):?>
  <ul>
    <li> <img src="<?php echo $this->baseUrl('/media/img/details.jpg')?>" alt="View/edit details" width="305" height="200" />
      <h4>View/Edit Details</h4>
      <p>If your details ever change you can edit them here. This is also the best place to change your password and email. </p>
      <p>
      <div class="highlight_button_blue"> <a href="<?php echo $this->baseUrl('/user')?>">My Details</a> </div>
      </p>
    </li>
    <li> <img src="<?php echo $this->baseUrl('/media/img/search.jpg')?>" alt="View/edit details" width="305" height="200" />
      <h4>Search Business Profiles</h4>
      <p>Search business plans and filter by criteria. Including stage of business, investment required, sector and location.</p>
      <p>
      <div class="highlight_button_blue"> <a href="javascript:search_form.submit();" title="Search Entrepenue">Search Business Profiles</a> </div>
      </p>
    </li>
    <li> <img src="<?php echo $this->baseUrl('/media/img/shortlist.jpg')?>" alt="" width="305" height="200" />
      <h4>View Shortlist</h4>
      <p>You can shortlist search results at any time for later viewing. Once you've done that they are saved to your profile.</p>
      <p>
      <div class="highlight_button_blue"> <a href="<?php echo $this->baseUrl("/bbling/index/investor-profile")?>" title="Get Funded">View Shortlist</a></div>
      </p>
    </li>
  </ul>
  <?php else:?>
  <ul>
    <li> <img src="<?php echo $this->baseUrl('/media/img/editplan.jpg')?>" alt="View/edit details" width="225" height="150" />
      <h4>View/Edit Details</h4>
      <p>Here you can change your basic account details such as your name, business name and email. </p>
      <p>
      
      <div class="highlight_button_blue"> <a href="<?php echo $this->baseUrl('/user')?>">My Details</a> </div>
      </p>
    </li>
    <li> <img src="<?php echo $this->baseUrl('/media/img/spare.jpg')?>" alt="View/edit details" width="225" height="150" />
      <h4>View/Edit Business Plan</h4>
      <p>Use our free online business plan builder to make your business plan then export it as a pdf. It's free!</p>
      <p>
      <div class="highlight_button_blue"> <a href="<?php echo $this->baseUrl('/bbling/index/business-plan-builder')?>" title="Edit details">Edit</a> <a href="<?php echo $this->baseUrl('/bbling/index/entrepreneur-profile-view')?>" title="View details">View</a> </div>
      </p>
    </li>
    <li> <img src="<?php echo $this->baseUrl('/media/img/funded.jpg')?>" alt="" width="225" height="150" />
      <h4>Get Funded</h4>
      <p>Showcase your business to thousands of investors who are searching the website right now to find an opportunity.</p>
      <p>
      <div class="highlight_button_blue"> <a href="<?php $configEntity = new Default_Model_Entity_Config ();
		echo $configEntity->getCodeValue ( 'wp_base_url' );?>business-funding-3/" title="Get Funded">Find Investors Now </a></div>
      </p>
    </li>
    <li> <img src="<?php echo $this->baseUrl('/media/img/video.jpg')?>" alt="View/edit details" width="225" height="150" />
      <h4>Watch Demo Video</h4>
      <p>Watch our demo video showcasing how to best write a business plan in order to get funding. </p>
      <p>
      <div class="highlight_button_blue"> <a href="#youtube_vedio_div" title="youtube vedio demo" class="youtube_vedio">Watch Video</a> </div>
      </p>
    </li>
    <li> <img src="<?php echo $this->baseUrl('/media/img/question.jpg')?>" alt="View/edit details" width="225" height="150" />
      <h4>Ask A Question</h4>
      <p>Check out our community Q and A forum. Ask a question, find questions, answer questions.</p>
      <p>
      
      <div class="highlight_button_blue"> <a href="http://businessandbling.co.uk/alpha/communityqa/" title="Ask A Question">Go to Comminuty QnA </a> </div>
      </p>
    </li>
    <li> <img src="<?php echo $this->baseUrl('/media/img/knowledge.jpg')?>" alt="View/edit details" width="225" height="150" />
      <h4>Contact Us</h4>
      <p>Contact us if you have a problem, feedback, sugestion, of if you want to get involved!</p>
      <p>
      
      <div class="highlight_button_blue"> <a href="mailto:info@businessandbling.co.uk" title="Contact Us">Contact Us</a> </div>
      </p>
    </li>
    <li> <img src="<?php echo $this->baseUrl('/media/img/spare2.jpg')?>" alt="View/edit details" width="225" height="150" />
      <h4>Get Some Knowledge</h4>
      <p>Our knowledge blog is our most popular section. Read our insights and opinions and check out our comic too!</p>
      <p>
      
      <div class="highlight_button_blue"> <a href="http://businessandbling.co.uk/alpha/business-plan-knowledge/" title="Get some knowledge ">Get some knowledge </a> </div>
      </p>
    </li>
    <li> <img src="<?php echo $this->baseUrl('/media/img/faq.jpg')?>" alt="View/edit details" width="225" height="150" />
      <h4>Read FAQ</h4>
      <p>Got a question that's probably been asked before? Check our our FAQ pages and find answers there.</p>
      <p>
      
      <div class="highlight_button_blue"> <a href="http://businessandbling.co.uk/alpha/business-plan-template-faq/" title="Go to FAQ ">Go to FAQ</a> </div>
      </p>
    </li>
  </ul>
  <?php endif;?>
</div>
<div class="clear_fix"></div>
<!-- End edit-->
<div id="paypal_user_role" style="display:none"><?php echo $this->user->select_role;?></div>
<?php $paypalUrl = $this->paypalAccount == 'xxxxxx_1311918233_biz@gmail.com'?'www.sandbox.paypal.com':'www.paypal.com'?>
<form name="_xclick" action="https://<?php echo $paypalUrl?>/cgi-bin/webscr" method="post" id="paypal_form">
  <!-- <form name="_xclick" id="paypal_form" action="<?php echo $this->baseUrl('/bbling/index/paypal-buy-now')?>" method="post"> -->
  <input type="hidden" name="cmd" value="_xclick">
  <input type="hidden" name="business" value="<?php echo $this->paypalAccount?>">
  <input type="hidden" name="item_name" value="Investors and Funding">
  <input type="hidden" name="item_number" value="1"/>
  <input type="hidden" name="currency_code" value="GBP">
  <input type="hidden" name="custom" value="<?php echo $this->user->confirm_key?>">
  <input type="hidden" name="amount" value="<?php echo $this->paypalFee?>">
  <input type="hidden" name="notify_url" value="<?php echo $this->fullBasePath.'/bbling/index/paypal-notify'?>" />
  <input type="hidden" name="return" value="<?php echo $this->fullBasePath.'/' ?>">
</form>
<script type="text/javascript">
	function submitPaypalForm(){
		var role = $('#paypal_user_role').text();
		if(!role){
			alert('You must login at first.');
			//return false;
		} else if(role != 'Entrepenuer'){
			alert('Your role is not upgrade');
			//return false;
		} else{
			document.getElementById('paypal_form').submit();
		}
		
	}
</script>
<form id="search_form" action="<?php echo $this->baseUrl() ?>/bbling/index/search" method="post" name="search_form">
  <input type="hidden" name="search[industry]" id="searchindustry" value="*"/>
  <input type="hidden" name="search[location]" id="searchlocation" value="*"/>
  <input type="hidden" name="search[fund]" id="searchfund" value="*"/>
  <input type="hidden" name="search[state]" id="searchstate" value="*"/>
  </select>
</form>
